#include <iostream>
using namespace std;

class Teacher {
public:
	Teacher (const string& name = "无名", const int& age = 0) {
		cout << "有参构造函数" << endl;
		m_name = name;
		m_age = age;
	}
#if 0
	Teacher (void) {
		cout << "无参构造函数" << endl;
		m_name = "无名";
		m_age = 0;
	}
#endif
	void who (void) {
		cout << m_name << ',' << m_age << endl;
	}
private:
	string m_name;
	int m_age;
};

int main (void)
{
	Teacher t1;
	t1.who ();

	Teacher t2("刘邦", 60);
	t2.who ();
	return 0;
}

